{% extends 'base.html' %}

{% block title %}
{{ data.package.m_name }} 列表
{% endblock %}

{% block content %}

<h1>📑 {{ data.package.m_name }} / {{ data.package.phy_name }} </h1>
<table class="table table-bordered mt-3">
    <thead>
    <tr>
        <th>fid</th>
        <th>表名</th>
        <th>表实体</th>
        <th>列数</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    {% for table in data.tables %}
    <tr>
        <th>{{ table.fid }}</th>
        <td>{{ table.name }}</td>
        <td>{{ table.owner }}</td>
        <td>{{ table.column_count }}</td>
        <td>
            <a href="/table/{{table.table_id}}/{{data.package.fid}}/{{data.package.pdm_id}}/"
               class="btn btn-info btn-sm">查看</a>
        </td>
    </tr>
    {% endfor %}
    </tbody>
</table>
{% endblock %}